package cn.funclab.elevator.common;

/**
 * 电梯的运行方向
 */
public enum DirectionEnum {
    UP(1, "向上运行"),
    STAY(0, "停在当前楼层"),
    Down(-1, "向下");

    /**
     * 方向：1：向上 0：停着不动 -1：向下
     */
    private Integer code;
    private String desc;

    DirectionEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
